<!DOCTYPE html>
<html lang="en">
<head>
    <title>数据监控</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<!--    <link href='css/bootstrap.min.css' rel="stylesheet" />-->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <link href="../../../css/style.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="../../../js/ajquery.min.js"></script>
    <script src="../../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
    <script src="../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
    <script src="../../../js/lang.js" type="text/javascript" charset="utf8"></script>
    <script src="../../../js/common.js" type="text/javascript" charset="utf8"></script>
</head>
<body>
<style>
    body{
        padding-top: 0 !important;
    }
</style>

<!-- 超链接 -->
<!--<a href="http://10.2.4.3:8080" id="autoLink" target="myIframe" style="display: none">跳转链接</a>-->

<!-- iframe 容器 -->
<iframe name="myIframe" id="myIframe" src="" style="width:100%; height:80vh; border:1px solid #ccc;"></iframe>
<script type="text/javascript">


    $(document).ready(function () {

        $.ajax({
            url: '/web/druid/index.html', // 替换为实际的 CPU 信息接口地址
            type: 'GET',
            success: function (response) {

            },
            error: function (error) {
                layer.msg('获取 CPU 数据失败，请稍后重试');
            }
        });
        // 页面加载完成后，自动点击 a 标签
        $('#autoLink')[0].click();

        // 或者也可以直接设置 iframe 的 src（可选）
        // $('#myIframe').attr('src', $('#autoLink').attr('href'));
    });
</script>
</body>
</html>